<template>
	<view>
		<view class="list-item">
			<view class="flex_h">
				<u-image class="avatar" :src="incomeData.url"></u-image>
				<text>{{incomeData.name}}</text>
			</view>
			<text>{{incomeData.time}}</text>
			<text>￥{{incomeData.money}}</text>
			<view v-if="incomeData.type==1" class="tags buy">已购买</view>
			<view v-if="incomeData.type==2" class="tags notbuy">未购买</view>
		</view>
	</view>
</template>

<script>
	import uImage from "@/uview-ui/components/u-image/u-image.vue";
	export default {
		components: {
			uImage,
		},
		props: {
			incomeData: {
				// 列表标题
				type: Object
			},
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.list-item {
		height: 167rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 33rpx 0 72rpx;
		border-bottom: 1px solid #E5E5E5;

		.flex_h {
			align-items: center;
		}

		.avatar {
			width: 74rpx !important;
			height: 74rpx !important;
		}

		text {
			font-size: 24rpx;
			color: #535353;
		}

		.tags {
			width: 119rpx;
			height: 44rpx;
			background: #E5E5E5;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 24rpx;

		}

		.buy {
			color: #00AFB1;
		}

		.notbuy {
			color: #535353;
		}
	}
</style>
